package com.mayikt.member.mapper.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Vince-zz
 * @since 2020-03-01
 */
@Data
@ApiModel(value="用户token")
@TableName("meite_user_token")
public class UserToken implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "token id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "token")
    private String token;

    @ApiModelProperty(value = "登陆类型")
    private String loginType;

    @ApiModelProperty(value = "设备信息")
    private String deviceInfo;

    @ApiModelProperty(value = "是否可用 0:不可用 1:可用")
    private Integer available;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "登陆ip")
    private String ip;

    @ApiModelProperty(value = "ip地址")
    private String address;
}
